import http from "http"
import axios from 'axios'
const base = "http://47.104.180.209:8091/"
export default {
    getLogininfo() {
        //window.sessionStorage.setItem("username", "VIP");
        let userinfo = window.sessionStorage.getItem("username");
        return userinfo;
    },
    personal_main() {
        axios.all([
            axios.get('/user/getUserStateNum?userId=1')])
            .then(function (respNum) {
                console.log('getUserStateNum', respNum.data);
                return {onlineCount: "22", offlineCount: "12", studyCardCount: "13"}
            })
            .catch(function (error) {
                console.log('getUserStateNum', error);
                return {onlineCount: "25", offlineCount: "22", studyCardCount: "23"}
            })
    },

}